import { ref, reactive } from "vue";
import { defineStore } from "pinia";


export const useStoreSum = defineStore("storeSum", () => {
  //控制菜单栏伸缩
  const isCollapse = ref(false);
  const goodsList = ref([]);
  const goodsSelect = ref([]);

  //入库id数组
  const inStorageId = ref([]);
  // const tableData = ref([
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1230%252F2def53f3j00r4xa9z001lc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673080069&t=af3795f02c22afea69f49bc580b1c474",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  //   {
  //     goodsId: "1",
  //     goodsPic:
  //       "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F14376173976%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672990569&t=d16020a9dcac92942d981e21cbb1d4bb",
  //     goodsTitle: "No. 189, Grove St, Los Angeles",
  //     goodsCat: "1",
  //     goodsPrice: "2",
  //     goodsEarnings: "2",
  //     goodsSale: "4",
  //     goodsNum: "5",
  //     goodsOrder: "6",
  //     goodsOp: "7",
  //   },
  // ]);
  return {
    isCollapse,
    goodsList,
    goodsSelect,
    inStorageId
  };
});
